/* Close the invitation form */
if ("<%= Rails.env %>" != "test") {
  $('div.invitation_form_hidden_parts').slideUp('fast');
}

/* Reset the invitation form */
$("#new_invitation")[0].reset();

/* Enable send button */
$('#new_invitation input[type=submit]').removeAttr('disabled');
$('#new_invitation input[type=submit]').val('<%= t("homepage.invitation_form.send_invitation") %>');
